package com.david.trade.clear.component;

import com.david.trade.clear.service.TcpMessage;
import com.lmax.disruptor.EventTranslatorOneArg;

/**
 * @author admin
 */
public class TcpMessageEventTranslator implements EventTranslatorOneArg<TcpMessageEvent, TcpMessage> {

    @Override
    public void translateTo(TcpMessageEvent tcpMessageEvent, long l, TcpMessage tcpMessage) {
        tcpMessageEvent.set(tcpMessage);
    }
}
